package com.x.ant.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

@MappingTable(tableName = "ANT_STAFF")
public class Staff extends BaseObject {
	@MappingColumn(columnName = "STAFF_ID", columnPk = true, columnLength = 32)
	private String staffId;

    @MappingColumn(columnName = "STAFF_ENTRY_DATE")
    private Date staffEntryDate;

    @MappingColumn(columnName = "STAFF_PHOTO")
    private String staffPhoto;

    @MappingColumn(columnName = "STAFF_TYPE")
    private Integer staffType;

    @MappingColumn(columnName = "STAFF_STATE")
    private Integer staffState;

    @MappingColumn(columnName = "USER_ID")
    private String userId;

    @MappingTable(tableName = "ANT_USER")
    private User user;

    @MappingColumn(columnName = "DEPT_ID")
    private String deptId;

    @MappingTable(tableName = "ANT_DEPT")
    private Dept dept;

	public Staff() {

	}

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public Date getStaffEntryDate() {
        return staffEntryDate;
    }

    public void setStaffEntryDate(Date staffEntryDate) {
        this.staffEntryDate = staffEntryDate;
    }

    public String getStaffPhoto() {
        return staffPhoto;
    }

    public void setStaffPhoto(String staffPhoto) {
        this.staffPhoto = staffPhoto;
    }

    public Integer getStaffType() {
        return staffType;
    }

    public void setStaffType(Integer staffType) {
        this.staffType = staffType;
    }

    public Integer getStaffState() {
        return staffState;
    }

    public void setStaffState(Integer staffState) {
        this.staffState = staffState;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
